package lhy;

import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;
import jakarta.servlet.annotation.WebListener;
import lhy.orm.UniLoader;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

@WebListener
public class AppStart implements ServletContextListener {
    public static final Logger LOGGER = LogManager.getLogger(AppStart.class);
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        UniLoader.INSTANCE.loadEntities();
        //UniLoader.INSTANCE.loadCache();
    }
}
